export default {
    install(Vue) {
      Vue.prototype.$goBack = (delta = 1) => {
        uni.navigateBack({
          delta: delta || 1
        });
      };

      Vue.prototype.$navigateTo = (url) => {
        uni.navigateTo({
          url: url
        });
      };

      Vue.prototype.$reLaunch = (url) => {
        uni.reLaunch({
          url: url
        });
      };


      Vue.prototype.$switchTab = (url) => {
        uni.switchTab({
          url: url
        });
      };
    }
  };
